
<!DOCTYPE html>
<html lang="" class="loading">
<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>My first blog - L3SLIE</title>
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
    <meta name="google" content="notranslate" />
    <meta name="keywords" content="L3SLIE,"> 
    <meta name="description" content="Welcome &amp; suit yourself,My first blogintroduce疫情原因，在家呆的无聊，就想着搭一个blog，之前一直想搭，总是半途而废，对web了解不多，其实是自己懒orz这次正好有时间和精力去做一些自己想做的事。顺,"> 
    <meta name="author" content="L3SLIE"> 
    <link rel="alternative" href="atom.xml" title="L3SLIE" type="application/atom+xml"> 
    <link rel="icon" href="/img/favicon.png"> 
    <link href="https://fonts.loli.net/css?family=Roboto+Mono|Rubik&display=swap" rel="stylesheet">
    
<link rel="stylesheet" href="//at.alicdn.com/t/font_1429596_nzgqgvnmkjb.css">

    
<link rel="stylesheet" href="//cdn.bootcss.com/animate.css/3.7.2/animate.min.css">

    
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/social-share.js/1.0.16/css/share.min.css">

    
<link rel="stylesheet" href="//cdn.bootcss.com/codemirror/5.48.4/codemirror.min.css">

    
<link rel="stylesheet" href="//cdn.bootcss.com/codemirror/5.48.4/theme/dracula.css">

    
<link rel="stylesheet" href="/css/obsidian.css">

    
<link rel="stylesheet" href="/css/ball-atom.min.css">

<meta name="generator" content="Hexo 4.2.0"></head>


<body class="loading">
    <div class="loader">
        <div class="la-ball-atom la-2x">
            <div></div>
            <div></div>
            <div></div>
            <div></div>
        </div>
    </div>
    <span id="config-title" style="display:none">L3SLIE</span>
    <div id="loader"></div>
    <div id="single">
    <div class="scrollbar gradient-bg-rev"></div>
<div id="top" style="display: block;">
    <div class="bar" style="width: 0;"></div>
    <div class="navigation animated fadeIn fast delay-1s">
        <img id="home-icon" class="icon-home" src="/img/favicon.png" alt="" data-url="http://l3slie.gitee.io">
        <div id="play-icon" title="Play/Pause" class="iconfont icon-play"></div>
        <h3 class="subtitle">My first blog</h3>
        <div class="social">
            <!--        <div class="like-icon">-->
            <!--            <a href="javascript:;" class="likeThis active"><span class="icon-like"></span><span class="count">76</span></a>-->
            <!--        </div>-->
            <div>
                <div class="share">
                    
                        <a href="javascript:;" class="iconfont icon-share1"></a>
                        <div class="share-component-cc" data-disabled="facebook,douban,linkedin,diandian,tencent,google"></div>
                    
                </div>
            </div>
        </div>
    </div>
</div>

    <div class="section">
        <div class=article-header-wrapper>
    <div class="article-header">
        <div class="article-cover animated fadeIn" style="
            animation-delay: 600ms;
            animation-duration: 1.2s;
            background-image: 
                radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.65), #100e17),
                url(/img/cover1.jpg) ">
        </div>
        <div class="else">
            <p class="animated fadeInDown">
                
                <a href="/categories/随笔"><b>「
                    </b>随笔<b> 」</b></a>
                
                February 10, 2020
            </p>
            <h3 class="post-title animated fadeInDown"><a href="/2020/02/10/blog/" title="My first blog" class="">My first blog</a>
            </h3>
            
            <p class="post-count animated fadeInDown">
                
                <span>
                    <b class="iconfont icon-text2"></b> <i>Words count</i>
                    6.3k
                </span>
                
                
                <span>
                    <b class="iconfont icon-timer__s"></b> <i>Reading time</i>
                    6 mins.
                </span>
                
                
                <span id="/2020/02/10/blog/" class="leancloud_visitors" data-flag-title="My first blog">
                    <b class="iconfont icon-read"></b> <i>Read count</i>
                    <span class="leancloud-visitors-count">100000</span>
                </span>
                
                
            </p>
            
            
            <ul class="animated fadeInDown post-tags-list" itemprop="keywords"><li class="animated fadeInDown post-tags-list-item"><a class="animated fadeInDown post-tags-list-link" href="/tags/%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA/" rel="tag">博客搭建</a></li><li class="animated fadeInDown post-tags-list-item"><a class="animated fadeInDown post-tags-list-link" href="/tags/%E9%9A%8F%E7%AC%94/" rel="tag">随笔</a></li></ul>
            
        </div>
    </div>
</div>

<div class="screen-gradient-after">
    <div class="screen-gradient-content">
        <div class="screen-gradient-content-inside">
            <div class="bold-underline-links screen-gradient-sponsor">
                <p>
                    <span class="animated fadeIn delay-1s"></span>
                </p>
            </div>
        </div>
    </div>
</div>

<div class="article">
    <div class='main'>
        <div class="content markdown animated fadeIn">
            <h1 id="My-first-blog"><a href="#My-first-blog" class="headerlink" title="My first blog"></a>My first blog</h1><h2 id="introduce"><a href="#introduce" class="headerlink" title="introduce"></a>introduce</h2><p>疫情原因，在家呆的无聊，就想着搭一个blog，之前一直想搭，总是半途而废，<del>对web了解不多，其实是自己懒orz</del>这次正好有时间和精力去做一些自己想做的事。顺便说一下自己在搭建这个blog遇到的一些问题及解决方法。<del>小白笔记，大佬轻喷</del></p>
<h2 id="Preparatory-work"><a href="#Preparatory-work" class="headerlink" title="Preparatory work"></a>Preparatory work</h2><p>懒人的准备工作简述：<br> 搭建博客的教程网上有许多（本博搭建在windows端），但在搭博客时，一篇看到底比看好多篇有用的多，<em>这一点我深有体会</em>，我在网上冲了半天，找到一个<a href="https://my.oschina.net/zhengqingya/blog/3070979" target="_blank" rel="noopener">e.g.</a>，介绍的挺详细的，我就不再说搭博客的基本方法了。<br> 搭博客就要<del>写博客</del>学习<a href="https://www.jianshu.com/p/ebe52d2d468f" target="_blank" rel="noopener">markdown语法</a>，这个链接里给出的markdown语法挺全面的，<em>白嫖嘿嘿</em>，我也就不再写了<br> emmm还有一个markdown编辑器的问题，我现在用的编辑器是<a href="https://typora.io/" target="_blank" rel="noopener">Typora</a>挺好用的，而且很方便，就是下载有丶慢，但还是要说VSCode牛逼，虽然上手难了点，但有一说一，世界最强编辑器Vim+VSCode。</p>
<h2 id="Problems"><a href="#Problems" class="headerlink" title="Problems"></a>Problems</h2><h3 id="0x01-Node-js-在cmd下命令无法识别"><a href="#0x01-Node-js-在cmd下命令无法识别" class="headerlink" title="0x01 Node.js 在cmd下命令无法识别"></a>0x01 Node.js 在cmd下命令无法识别</h3><p>这个问题我在搭的时候虽然没有出现，但看网上挺多人问的，就简单说一下叭，node.js一般默认是全局安装的，也就是直接将路径添加到系统环境变量中的，但也不排除有误操作没有勾选add to path 这个选项的人，所以我也给出一个解决的方法。<br> 找到node.js所在文件夹，然后在开始搜索框中搜索系统变量，打开，新建，配置就好。再给出一个详解的<a href="https://www.cnblogs.com/menggirl23/p/9139444.html" target="_blank" rel="noopener">文章</a>。然后所有的环境变量基本上都是这个配置方法，大同小异，照搬就是了。</p>
<h3 id="0x02-hexo的安装"><a href="#0x02-hexo的安装" class="headerlink" title="0x02 hexo的安装"></a>0x02 hexo的安装</h3><p>hexo<strong><em>WDNMD</em></strong>就是安装失败这怎么搞……<br> 困扰我很长时间的问题，也是让我到现在才打算搭博客的原因之一。这是因为hexo的下载需要连<del>gay</del>github，博主学校所在地区网络是真的辣鸡，所以就回家再搭了Orz，但是并不只是网的问题，国内的npm源也是个坑，所以要换源。</p>
<pre><code class="bash">npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install hexo-cli -g</code></pre>
<p>键入上面的代码可以换成国内的源，但是别慌，一个坑解决了总有下一个坑等着你。</p>
<h3 id="0x03-cnpm命令无法识别"><a href="#0x03-cnpm命令无法识别" class="headerlink" title="0x03 cnpm命令无法识别"></a>0x03 cnpm命令无法识别</h3><p>没想到吧，这屌玩意儿也有毛病。<br> 环境变量问题，我就纳了闷了，别人装都是全局，怎么就我没环境，淦。<br> 解决方法类似添加环境变量即可。</p>
<h3 id="0x04-常用的hexo命令"><a href="#0x04-常用的hexo命令" class="headerlink" title="0x04 常用的hexo命令"></a>0x04 常用的hexo命令</h3><pre><code class="bash">hexo clean      ##清理
hexo g          ##构建、编译#generate
hexo s          ##启动服务#server
hexo d          ##上传至服务器#deploy</code></pre>
<p>码字啥的真的不喜欢，能简写就简写。</p>
<h3 id="0x05配置问题"><a href="#0x05配置问题" class="headerlink" title="0x05配置问题"></a>0x05配置问题</h3><p>留置，有些我也不太清楚，太菜了。等搞完再写，或者有大佬可以指点我一下也是极好的<del>妄想开始</del>。</p>
<p><strong>B0001 主题config</strong><br>所有的配置直接从主题GitHub上的源码复制粘贴到自己本地，再进行修改会省很多时间，而且不易出错，否则很容易忽视输入法，一个中文空格，直接原地螺旋爆炸。</p>
<p><strong>B0010 关于我使用的hexo-theme-obsidian</strong></p>
<p>先放一个主题<a href="https://github.com/TriDiamond/hexo-theme-obsidian" target="_blank" rel="noopener">链接</a><br>这个主题一眼看上去就很喜欢，而且主题作者也很耐心的解答了我的一些弱智问题，<del>虽然还有两个没很明白，明天再搞。</del>，下面是主题预览。<br><img src="https://res.cloudinary.com/tridiamond/image/upload/v1573323147/blog/A-Obsidian-full_ubmo0d.png" alt="screenshot"></p>
<p><strong>B0011 评论区与浏览量</strong><br>个人感觉都挺好装的，但是用的时候要注意<code>gitalk</code>和<code>valine</code>两种评论插件，gitalk和不蒜子搭配，实现GitHub可登录（方便作者与读者交流，而且支持markdown语法）和浏览量统计。valine在我的尝试下也没能实现它自有记数的功能（不蒜子要false掉），但是评论区还是正常的。</p>
<p><strong>B0100 Search服务插件</strong><br>还没弄好，貌似要手动改一些东西。明天吧。<em>废物一个</em> </p>
<p>似乎是我的search插件配置有问题，但是本地调试是可以搜索的，功能正常，但码云的page出现了不能访问search.xml文件的现象，搜索报错是跨域问题，emmm，有种此路不通的感觉。淦啊！</p>
<p>就在我快要放弃时，清理了一下cookie它就正常运行了，👴要爽死了！！！</p>
<p><strong>B0101 小BUG</strong><br>主题侧目录只支持三级标题，再多一级目录就只能显示文章title。</p>
<p> 如果新上传的文章不够长，主页动态字符串只能显示一半。这个bug在主题issue中有人提到过，说是注释掉一行代码就可以了Chrome遇到同样问题，注释下面的代码可以解决：</p>
<pre><code class="java">#screen .cover {
               /* position: absolute; */
                }</code></pre>
<p>在css\obsidian.styl文件中。</p>
<p>我的解决方法是修改这个文件的height值，代码如下：</p>
<pre><code class="java">#screen {
  z-index: 1;
  position: relative;
  background: #100e17;
  border-bottom-right-radius: 200px;

  .cover {
    position: absolute;
    top: 0;
    left: 30%;
    width: 1200px;
    height: 600px;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.85;
  }
}</code></pre>
<p>修改后再来一套组合拳</p>
<pre><code class="bash">hexo clean
hexo g
hexo d</code></pre>
<p>就OK了。</p>
<p><strong>B0110 主页logo</strong><br>这个如果博客的网址没有二级域名，那么点击主页logo后正常刷新主页，但是我之前的博客是存在二级域名的，所以点击logo后会跳转到上级域名，但是上级域名又没有任何设置，404，我想了很长时间，最后在更新的主题配置中找到了原因， 目前不知道如何修改，哪位带佬知道可以评论区指点一下。。。</p>
<pre><code class="html">&lt;a class=&quot;iconfont icon-left image-icon&quot; href=&quot;javascript:history.back()&quot;&gt;&lt;/a&gt;</code></pre>
<p>这段代码是在<code>themes\obsidian\layout</code>的<code>page.ejs</code>文件里的，调用了<code>javascript:history.back()</code>这个函数，虽然没学JAVA，但是作用大概是跳转到上级网页的。在我换了一个没有二级域名的仓库之后就好了，码云page如果仓库名与用户名相同是没有二级域名的，具体操作见<a href="https://gitee.com/help/articles/4136#article-header0" target="_blank" rel="noopener">码云Page服务</a></p>
<p><strong>B0111 代码块显示问题</strong></p>
<pre><code>#! 版本`v1.3.5`开始代码高亮已经用`codemirror`替换了`highlight.js`</code></pre><p>要想以代码块的形式而不是代码行内式的形式出现在网页上，需要标明代码属于哪种语言，否则代码还是行内式。</p>
<p><img src="https://gitee.com/L3SLIE/blog/raw/master/img/%E4%BB%A3%E7%A0%81%E5%9D%97eg.jpg" alt="e.g."></p>
<p><strong>B1000 插入图片</strong></p>
<p>1.如果你是用码云作为图片托管的话，需要在码云中打开图片原始数据，复制图片路径才可生效。</p>
<p><img src="https://gitee.com/L3SLIE/blog/raw/master/img/%E5%8E%9F%E5%A7%8B%E6%95%B0%E6%8D%AE.png" alt="原始数据"></p>
<p>2.<code>html+css</code>插入图片设置图片居中</p>
<pre><code class="html">&lt;img style=&quot;margin: 0 auto;&quot; src=&quot;/example/img.gif&quot; height=100 width=100 /&gt;</code></pre>
<h3 id="0x06-本地服务正常开启，码云page却没特效"><a href="#0x06-本地服务正常开启，码云page却没特效" class="headerlink" title="0x06 本地服务正常开启，码云page却没特效"></a>0x06 本地服务正常开启，码云page却没特效</h3><p>当时我真的心态炸了，明明就快配好了，但码云page就是没主题特效，<del>那我要主题有锤子用</del>，url和root一定要设置好，配置修改后，一定要</p>
<pre><code class="bash">hexo clean
hexo g
hexo d</code></pre>
<p>组合拳打一套；修改<em>config</em> 后，要手动更新码云的Page服务，不然是没用的；再清理一下cookie，就可以了。</p>
<h2 id="Summary"><a href="#Summary" class="headerlink" title="Summary"></a>Summary</h2><p>搭博客确实需要一定的耐心，很少有速成的东西，坚持！才是胜利！加油！奥力给！！！<br>玩归玩，闹归闹，别拿<del>自己</del>开玩笑（你再骂？），希望这篇博客可以帮助到大家，也祝大家都可以搭建好自己的blog。</p>
<hr>

            <!--[if lt IE 9]><script>document.createElement('audio');</script><![endif]-->
            <audio id="audio" loop="1" preload="auto" controls="controls"
                data-autoplay="false">
                <source type="audio/mpeg" src="">
            </audio>
            
            <ul id="audio-list" style="display:none">
                
                
                <li title='0' data-url='/statics/i saw you in a dream.mp3'></li>
                
                    
            </ul>
            
            
            
            <div id="vcomments"></div>
            
        </div>
        <div class="sidebar">
            <div class="box animated fadeInRight">
                <div class="subbox">
                    <img src="/img/avatar.jpg" height=300 width=300></img>
                    <p>L3SLIE</p>
                    <span>Life Long & Pwn</span>
                    <dl>
                        <dd><a href="https://github.com/13slie" target="_blank"><span
                                    class=" iconfont icon-github"></span></a></dd>
                        <dd><a href="" target="_blank"><span
                                    class=" iconfont icon-twitter"></span></a></dd>
                        <dd><a href="https://stackexchange.com/users/17805607/l3slie" target="_blank"><span
                                    class=" iconfont icon-stack-overflow"></span></a></dd>
                    </dl>
                </div>
                <ul>
                    <li><a href="/">46 <p>Articles</p></a></li>
                    <li><a href="/categories">13 <p>Categories</p></a></li>
                    <li><a href="/tags">20 <p>Tags</p></a></li>
                    <br><span><b><p>友链博客</p></b></span><br>
                    <span><u><p><a href="http://rdd.xjusec.club/" target="_blank">Rdd</a></p></u></span>
                    <span><u><p><a href="http://www.xjusec.club/" target="_blank">XJUSEC</a></p></u></span>
                    <span><u><p><a href="http://www.r1ght0us.xyz/" target="_blank">r1ght0us</a></p></u></span>
                </ul>
            </div>
            
            
            
            <div class="box sticky animated fadeInRight faster">
                <div id="toc" class="subbox">
                    <h4>Contents</h4>
                    <ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#My-first-blog"><span class="toc-number">1.</span> <span class="toc-text">My first blog</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#introduce"><span class="toc-number">1.1.</span> <span class="toc-text">introduce</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#Preparatory-work"><span class="toc-number">1.2.</span> <span class="toc-text">Preparatory work</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#Problems"><span class="toc-number">1.3.</span> <span class="toc-text">Problems</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#0x01-Node-js-在cmd下命令无法识别"><span class="toc-number">1.3.1.</span> <span class="toc-text">0x01 Node.js 在cmd下命令无法识别</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#0x02-hexo的安装"><span class="toc-number">1.3.2.</span> <span class="toc-text">0x02 hexo的安装</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#0x03-cnpm命令无法识别"><span class="toc-number">1.3.3.</span> <span class="toc-text">0x03 cnpm命令无法识别</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#0x04-常用的hexo命令"><span class="toc-number">1.3.4.</span> <span class="toc-text">0x04 常用的hexo命令</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#0x05配置问题"><span class="toc-number">1.3.5.</span> <span class="toc-text">0x05配置问题</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#0x06-本地服务正常开启，码云page却没特效"><span class="toc-number">1.3.6.</span> <span class="toc-text">0x06 本地服务正常开启，码云page却没特效</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#Summary"><span class="toc-number">1.4.</span> <span class="toc-text">Summary</span></a></li></ol></li></ol>
                </div>
            </div>
            
            
        </div>
    </div>
</div>

    </div>
</div>
    <div id="back-to-top" class="animated fadeIn faster">
        <div class="flow"></div>
        <span class="percentage animated fadeIn faster">0%</span>
        <span class="iconfont icon-top02 animated fadeIn faster"></span>
    </div>
</body>
<footer>
    <p class="copyright" id="copyright">
		<span id="timeDate">载入天数...</span><span id="times">载入时分秒...</span>
		<script>
		var now = new Date(); 
		function createtime() { 
			var grt= new Date("01/10/2020 00:00:00");//在此处修改你的建站时间
			now.setTime(now.getTime()+250); 
			days = (now - grt ) / 1000 / 60 / 60 / 24; dnum = Math.floor(days); 
			hours = (now - grt ) / 1000 / 60 / 60 - (24 * dnum); hnum = Math.floor(hours); 
			if(String(hnum).length ==1 ){hnum = "0" + hnum;} minutes = (now - grt ) / 1000 /60 - (24 * 60 * dnum) - (60 * hnum); 
			mnum = Math.floor(minutes); if(String(mnum).length ==1 ){mnum = "0" + mnum;} 
			seconds = (now - grt ) / 1000 - (24 * 60 * 60 * dnum) - (60 * 60 * hnum) - (60 * mnum); 
			snum = Math.round(seconds); if(String(snum).length ==1 ){snum = "0" + snum;} 
			document.getElementById("timeDate").innerHTML = "本站已安全运行 "+dnum+" 天 "; 
			document.getElementById("times").innerHTML = hnum + " 小时 " + mnum + " 分 " + snum + " 秒"; 
		} 
		setInterval("createtime()",250);
		</script>
        &copy; 2020
        <span class="gradient-text">
            L3SLIE
        </span>❤
        Powered by <a href="http://hexo.io/" title="Hexo" target="_blank" rel="noopener">Hexo</a>
        Theme
        <span class="gradient-text">
            <a href="https://github.com/TriDiamond/hexo-theme-obsidian" title="Obsidian" target="_blank" rel="noopener">Obsidian</a>
        </span>
        <small><a href="https://github.com/TriDiamond/hexo-theme-obsidian/blob/master/CHANGELOG.md" title="v1.4.3" target="_blank" rel="noopener">v1.4.3</a></small>
    </p>
</footer>

<script type="text/javascript" src="https://cdn.bootcss.com/mathjax/2.7.6/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
<script>
  MathJax.Hub.Config({
    "HTML-CSS": {
      preferredFont: "TeX",
      availableFonts: ["STIX", "TeX"],
      linebreaks: {
        automatic: true
      },
      EqnChunk: (MathJax.Hub.Browser.isMobile ? 10 : 50)
    },
    tex2jax: {
      inlineMath: [
        ["$", "$"],
        ["\\(", "\\)"]
      ],
      processEscapes: true,
      ignoreClass: "tex2jax_ignore|dno",
      skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
    },
    TeX: {
      noUndefined: {
        attributes: {
          mathcolor: "red",
          mathbackground: "#FFEEEE",
          mathsize: "90%"
        }
      },
      Macros: {
        href: "{}"
      }
    },
    messageStyle: "none"
  });
</script>
<script>
  function initialMathJax() {
    MathJax.Hub.Queue(function () {
      var all = MathJax.Hub.getAllJax(),
        i;
      // console.log(all);
      for (i = 0; i < all.length; i += 1) {
        console.log(all[i].SourceElement().parentNode)
        all[i].SourceElement().parentNode.className += ' has-jax';
      }
    });
  }

  function reprocessMathJax() {
    if (typeof MathJax !== 'undefined') {
      MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
    }
  }
</script>




<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="/js/plugin.js"></script>
<script src="/js/obsidian.js"></script>
<script src="/js/jquery.truncate.js"></script>
<script src="/js/search.js"></script>


<script src="//cdn.bootcss.com/typed.js/2.0.10/typed.min.js"></script>


<script src="//cdn.bootcss.com/blueimp-md5/2.12.0/js/md5.min.js"></script>


<script src="//cdnjs.cloudflare.com/ajax/libs/social-share.js/1.0.16/js/social-share.min.js"></script>


<script src="https://cdn.bootcss.com/codemirror/5.48.4/codemirror.min.js"></script>

    
<script src="//cdn.bootcss.com/codemirror/5.48.4/mode/javascript/javascript.min.js"></script>


    
<script src="//cdn.bootcss.com/codemirror/5.48.4/mode/css/css.min.js"></script>


    
<script src="//cdn.bootcss.com/codemirror/5.48.4/mode/xml/xml.min.js"></script>


    
<script src="//cdn.bootcss.com/codemirror/5.48.4/mode/htmlmixed/htmlmixed.min.js"></script>


    
<script src="//cdn.bootcss.com/codemirror/5.48.4/mode/clike/clike.min.js"></script>


    
<script src="//cdn.bootcss.com/codemirror/5.48.4/mode/php/php.min.js"></script>


    
<script src="//cdn.bootcss.com/codemirror/5.48.4/mode/shell/shell.min.js"></script>


    
<script src="//cdn.bootcss.com/codemirror/5.48.4/mode/python/python.min.js"></script>




    
<script src="/js/busuanzi.min.js"></script>

    <script>
        $(document).ready(function () {
            if ($('span[id^="busuanzi_"]').length) {
                initialBusuanzi();
            }
        });
    </script>



<link rel="stylesheet" href="//cdn.bootcss.com/photoswipe/4.1.3/photoswipe.min.css">
<link rel="stylesheet" href="//cdn.bootcss.com/photoswipe/4.1.3/default-skin/default-skin.min.css">


<script src="//cdn.bootcss.com/photoswipe/4.1.3/photoswipe.min.js"></script>
<script src="//cdn.bootcss.com/photoswipe/4.1.3/photoswipe-ui-default.min.js"></script>


<!-- Root element of PhotoSwipe. Must have class pswp. -->
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
    <!-- Background of PhotoSwipe. 
         It's a separate element as animating opacity is faster than rgba(). -->
    <div class="pswp__bg"></div>
    <!-- Slides wrapper with overflow:hidden. -->
    <div class="pswp__scroll-wrap">
        <!-- Container that holds slides. 
            PhotoSwipe keeps only 3 of them in the DOM to save memory.
            Don't modify these 3 pswp__item elements, data is added later on. -->
        <div class="pswp__container">
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
        </div>
        <!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
        <div class="pswp__ui pswp__ui--hidden">
            <div class="pswp__top-bar">
                <!--  Controls are self-explanatory. Order can be changed. -->
                <div class="pswp__counter"></div>
                <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>
                <button class="pswp__button pswp__button--share" title="Share"></button>
                <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>
                <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>
                <!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
                <!-- element will get class pswp__preloader--active when preloader is running -->
                <div class="pswp__preloader">
                    <div class="pswp__preloader__icn">
                      <div class="pswp__preloader__cut">
                        <div class="pswp__preloader__donut"></div>
                      </div>
                    </div>
                </div>
            </div>
            <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
                <div class="pswp__share-tooltip"></div> 
            </div>
            <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
            </button>
            <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
            </button>
            <div class="pswp__caption">
                <div class="pswp__caption__center"></div>
            </div>
        </div>
    </div>
</div>







<script>
    function initialTyped () {
        var typedTextEl = $('.typed-text');
        if (typedTextEl && typedTextEl.length > 0) {
            var typed = new Typed('.typed-text', {
                strings: ["Life Long &amp; Pwn", "生命不息，破解不止"],
                typeSpeed: 90,
                loop: true,
                loopCount: Infinity,
                backSpeed: 20,
            });
        }
    }

    if ($('.article-header') && $('.article-header').length) {
        $(document).ready(function () {
            initialTyped();
        });
    }
</script>


    
<script src="//unpkg.com/valine/dist/Valine.min.js"></script>

    <script>

        var valine = new Valine();

        function initValine(path) {
            if (!path) path = window.location.pathname;
            let language = '';
            if (!language) {
                language = 'en';
            } else {
                language = language.toLowerCase();
            }
            valine.init({
                el: '#vcomments',
                appId: 'GnPlbHQ9xAWEoCDC8rR3zALj-gzGzoHsz',
                appKey: 'Nygd2awSxr9ioTDtvbH6hE0l',
                notify: 'false',
                verify: 'false',
                avatar: 'mm',
                placeholder: 'feel free to comment~',
                visitor: 'true',
                path: path,
                lang: language
            });
        }

        $(document).ready(function () {
            initValine();
        });
    </script>



</html>
<!-- 页面点击小红心 -->
<script type="text/javascript" src="/js/love.js"></script>
<!-- 烟火效果 -->
<canvas class="fireworks" style="position: fixed;left: 0;top: 0;z-index: 1; pointer-events: none;" ></canvas> 
<script type="text/javascript" src="//cdn.bootcss.com/animejs/2.2.0/anime.min.js"></script> 
<script type="text/javascript" src="/js/fireworks.js"></script>
<!--自定义标题-->
<script type="text/javascript" src="\js\title.js"></script>
